﻿using System;
using Soveryn.Commerce.BaseClasses;

namespace Soveryn.Commerce.Doodads
{

    public partial class HTML : DoodadBaseClass
    {

        new protected void Page_Load(object sender, EventArgs e)
        {

            base.Page_Load(sender, e);

            if (IsPostBack)
                return;

            if (ParentPage.EditMode && ParentPage.EmployeeLoggedIn)
            {
                HTMLPanel.CssClass = "editable";
                HTMLPanel.Attributes.Add("data-id", Properties.ElementID);
            }

            HTMLLiteral.Text = Properties.DoodadInstanceHTML;

        }

    }
}
